home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / cp1.zip / MOD1-1.C < prev    next >
Text File  |  1993-06-10  |  4KB  |  73 lines

  1. ===========================================================================
  2.  BBS: The Abacus * HST/DS * Potterville, MI
  3. Date: 06-06-93 (11:26)             Number: 217
  4. From: DANIEL LYNES                 Refer#: NONE
  5.   To: MATTHEW O'CONNOR              Recvd: NO  
  6. Subj: Mod File Routines 1/4          Conf: (36) C Language
  7. ---------------------------------------------------------------------------
  8. MO>Hello.  I have a very simple question.  Does ANYONE have any info on MO>writi
  9. ng programs that will play .MOD module files on a PC???  I would MO>greatly appr
  10. eciate some assistance in this matter, since the only info I MO>programs Ims I h
  11. ave for this sort of programming is rather
  12. crummy!  If you
  13.  
  14. Try PPS.ARJ (assembly source to Mod Play Pro for TASM 2.0), or,
  15. here's the source for some kind of MOD player:
  16.  
  17. Well, follows the code and header to access the MOD files.  However, for the rou
  18. tines to access the Soundblaster, if you're not worried about portability to sou
  19. ndblaster compatible sound cards, you can try any one of a number of soundblaste
  20. r shareware libraries, or the BIOS routines in the miscellaneous API section of
  21. Ralf Brown's
  22. interrupt list.  If you want any of the shareware libraries, just ask...I've got
  23.  'em for Pascal, C and assembly.
  24.  
  25. /***********************************************************************/ /*@-=#
  26. =-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#@*/ /*#+--------
  27. ------------------------^--------------------------------+#*/ /*||
  28.           Mod File Routines                        ||*/ /*#|
  29.   Written by Kirk Smith                      |#*/ /*||
  30.                                        ||*/ /*#|     This file reads the modfile
  31.  named in the by "name" var in   |#*/ /*|| the main routine.  The author makes n
  32. o warrenty or guarantee on ||*/ /*#| the code here in.  Furthermore, any damage
  33. from use is not      |#*/ /*|| liable to the author (use at own risk).  This is
  34. a copyrighted  ||*/ /*#| program that is freely available for educational reason
  35. s only.  |#*/ /*||    Use of this code in ANY shareware/commercial program is
  36.    ||*/ /*#| prohibited, with out written concent from the author.  Use in   |#*
  37. / /*|| FREE public domain programs is granted if the author and copy   ||*/ /*#|
  38.  right notices are visibly displayed in both the documantation   |#*/ /*|| and i
  39. n program exectution.                                      ||*/ /*#|
  40.                                                      |#*/ /*||          Copyrigh
  41. t 1993 MS-Production                           ||*/ /*#|
  42.  Kirk Smith                              |#*/ /*||                         (1:10
  43. 5/290.7)                           ||*/ /*#|
  44.                              |#*/ /*||    This file should be compiled in the HU
  45. GE memory model.       ||*/ /*#|  It will load the instament info, mod file name
  46. , and the        |#*/ /*|| tracks into the structure.
  47.            ||*/ /*#|
  48.      |#*/ /*||  Hope this helps.                                               |
  49. |*/ /*#|                                                                 |#*/ /*
  50. ||                                                                 ||*/ /*#+----
  51. ----------------------------^--------------------------------+#*/ /*@-=#=-=#=-=#
  52. =-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#@*/ /*******************
  53. ****************************************************/
  54.  
  55. #define MAXTRACK 64                 /* 64 Tracks per song     */
  56. /*  On my machine, I ran out of ram running it under compiler.
  57.    When I quit out and then ran it, it ran fine               */
  58.  
  59. #define MAXPAT   128             /* 128 pattern elements   */
  60. #define MAXINST  31                 /* 31 Instraments        */
  61. #define MAXNOTES 64                 /* 64 notes per track     */
  62. #define MAXCHAN  4                  /* 4 channels per song    */
  63. #define word    unsigned int
  64. #define byte    unsigned char
  65.  
  66.  * SLMR 2.1a * Beware! I'm armed and have premenstrual tension.
  67.  
  68. --- SLMAIL v3.0  (#0272)
  69.  * Origin: Thunder Bay, Ontario, Canada (1:229/516)
  70. SEEN-BY: 1/211 11/2 4 13/13 101/1 108/89 109/25 110/69 114/5 123/19 124/1
  71. SEEN-BY: 153/752 154/40 77 157/110 159/100 125 430 575 950 203/23 209/209
  72. SEEN-BY: 261/1023 280/1 390/1 396/1 5 15 2270/1 2440/5 3603/20
  73.